package org.campuscontent.model;

import java.util.Vector;

public class Exercise
{
	public String exerciseID = "";
	public String exerciseName = "";
	public String exerciseDescribtion = "";
	public Vector<Problem> problems;
	public boolean modified = false;

	public Exercise(String exerciseID, String exerciseName,
			String exerciseDecribtion)
	{
		this.exerciseID = exerciseID;
		this.exerciseName = exerciseName;
		this.exerciseDescribtion = exerciseDecribtion;
		this.problems = new Vector<Problem>();
	}

	public Exercise(String exerciseName, String exerciseDescribtion)
	{
		this.exerciseName = exerciseName;
		this.exerciseDescribtion = exerciseDescribtion;
		this.problems = new Vector<Problem>();
	}
	
	public Exercise(String exerciseID, String exerciseName,boolean modified)
	{
		this.exerciseID = exerciseID;
		this.exerciseName = exerciseName;
		this.modified = modified;;
		this.problems = new Vector<Problem>();
	}

	public Exercise()
	{
		super();
	}

	public String toString()
	{
		return exerciseName;
	}

	public String getExerciseID()
	{
		return exerciseID;
	}

	public void setExerciseID(String exerciseID)
	{
		this.exerciseID = exerciseID;
	}

	public String getExerciseName()
	{
		return exerciseName;
	}

	public void setExerciseName(String exerciseName)
	{
		this.exerciseName = exerciseName;
	}

	public String getExerciseDecribtion()
	{
		return exerciseDescribtion;
	}

	public void setExerciseDecribtion(String exerciseDecribtion)
	{
		this.exerciseDescribtion = exerciseDecribtion;
	}

	public void setExerciseDescribtion(String exerciseDescribtion)
	{
		this.exerciseDescribtion = exerciseDescribtion;
	}

	public Vector<Problem> getProblems()
	{
		return problems;
	}

	public void setProblems(Vector<Problem> problems)
	{
		this.problems = problems;
	}

	public boolean isModified()
	{
		return modified;
	}

	public void setModified(boolean modified)
	{
		this.modified = modified;
	}
}
